package com.next

class MessageAuditTrail
{
    String level
    String logs

    // static belongsTo = [message: Message]
    static mapping = {
        level column: '`level`'
    }

    static constraints =
        {
            logs maxSize: 5000
            level inList: ['Info', 'Error']
        }
}
